package com.lekeyun.console.configure;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * author: wangpeng
 * date: 2018/5/31
 * email: wangpeng@leoao.com
 * Q Q: 492795297
 */
@ConfigurationProperties(prefix = "spring.mongo")
public class MongoProperties {
    private String serverAddress;

    private String dbName;

    private String username;

    private String password;


    public String getServerAddress() {
        return serverAddress;
    }

    public void setServerAddress(String serverAddress) {
        this.serverAddress = serverAddress;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
